package com.wyzc.exam.service;

import java.util.ArrayList;

import com.wyzc.exam.Exception.IdPassException;
import com.wyzc.exam.entity.ExamInfo;
import com.wyzc.exam.entity.Question;
import com.wyzc.exam.entity.QuestionInfo;
import com.wyzc.exam.entity.User;

public interface ExamService {
   User logon(String name, String password) throws IdPassException;
   ExamInfo start();
   ArrayList<QuestionInfo> getExamQuestions();
   QuestionInfo getQuestionInfo(int pageIndex);
   int getTotalScore();
   public void saveUserAnswers(int pageIndex, ArrayList<Integer> userAnswers);
}
